<?php

declare(strict_types=1);

namespace App\Controller\Access;


use App\Controller\BaseController;
use App\Request\Access\CaptchaRequest;
use App\Services\Sms\SmsService;
use Hyperf\Di\Annotation\Inject;

class SendController extends BaseController
{
    #[Inject]
    public SmsService $smsService;

    public function captcha(CaptchaRequest $request)
    {
        $params = $this->request->post();
        $request->execute($params);
        return $this->return($this->smsService->captcha($params));

    }
}
